home *** CD-ROM | disk | FTP | other *** search
/ Languguage OS 2 / Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO / gnu / gas_251.zip / bin_251 / opcodes / Makefile.in < prev    next >
Makefile  |  1994-10-12  |  6KB  |  202 lines

  1. #    Makefile template for Configure for the opcodes library.
  2. #    Copyright (C) 1990, 1991, 1992 Free Software Foundation, Inc.
  3. #    Written by Cygnus Support.
  4. # This program is free software; you can redistribute it and/or modify
  5. # it under the terms of the GNU General Public License as published by
  6. # the Free Software Foundation; either version 2 of the License, or
  7. # (at your option) any later version.
  8. # This program is distributed in the hope that it will be useful,
  9. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  11. # GNU General Public License for more details.
  12. # You should have received a copy of the GNU General Public License
  13. # along with this program; if not, write to the Free Software
  14. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  15.  
  16. srcdir = .
  17.  
  18. prefix = /usr/local
  19.  
  20. exec_prefix = $(prefix)
  21. bindir = $(exec_prefix)/bin
  22. libdir = $(exec_prefix)/lib
  23.  
  24. datadir = $(prefix)/lib
  25. mandir = $(prefix)/man
  26. man1dir = $(mandir)/man1
  27. man2dir = $(mandir)/man2
  28. man3dir = $(mandir)/man3
  29. man4dir = $(mandir)/man4
  30. man5dir = $(mandir)/man5
  31. man6dir = $(mandir)/man6
  32. man7dir = $(mandir)/man7
  33. man8dir = $(mandir)/man8
  34. man9dir = $(mandir)/man9
  35. infodir = $(prefix)/info
  36. includedir = $(prefix)/include
  37. oldincludedir =
  38. docdir = $(srcdir)/doc
  39.  
  40. SHELL = /bin/sh
  41.  
  42. INSTALL = `cd $(srcdir)/..; pwd`/install.sh -c
  43. INSTALL_PROGRAM = $(INSTALL)
  44. INSTALL_DATA = $(INSTALL)
  45.  
  46. AR = ar
  47. AR_FLAGS = qc
  48. CFLAGS = -g
  49. BISON = bison
  50. MAKEINFO = makeinfo
  51. RANLIB = ranlib
  52.  
  53. INCDIR = $(srcdir)/../include
  54. BFDDIR = $(srcdir)/../bfd
  55. CSEARCH = -I. -I$(srcdir) -I../bfd -I$(INCDIR) -I$(BFDDIR)
  56. DEP = mkdep
  57.  
  58.  
  59. TARGETLIB = libopcodes.a
  60.  
  61. # To circumvent a Sun make VPATH bug, each file listed here
  62. # should also have a foo.o: foo.c line further along in this file.
  63.  
  64. ALL_MACHINES = a29k-dis.o alpha-dis.o h8300-dis.o h8500-dis.o \
  65.     hppa-dis.o i386-dis.o i960-dis.o m68k-dis.o \
  66.     m88k-dis.o mips-dis.o mips-opc.o sh-dis.o sparc-dis.o \
  67.     sparc-opc.o z8k-dis.o ns32k-dis.o ppc-dis.o ppc-opc.o \
  68.     arm-dis.o
  69.  
  70. # BFD_MACHINES is set by configure.in.
  71. OFILES = $(BFD_MACHINES) dis-buf.o disassemble.o
  72.  
  73. #### host and target dependent Makefile fragments come in here.
  74. ###
  75.  
  76. FLAGS_TO_PASS = \
  77.     "against=$(against)" \
  78.     "AR=$(AR)" \
  79.     "AR_FLAGS=$(AR_FLAGS)" \
  80.     "CC=$(CC)" \
  81.     "CFLAGS=$(CFLAGS)" \
  82.     "RANLIB=$(RANLIB)" \
  83.     "MAKEINFO=$(MAKEINFO)" \
  84.     "INSTALL=$(INSTALL)" \
  85.     "INSTALL_DATA=$(INSTALL_DATA)" \
  86.     "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
  87.     "BISON=$(BISON)"
  88.  
  89. .c.o:
  90.     $(CC) -c $(CFLAGS) $(HDEFINES) $(TDEFINES) $(CSEARCH) $(CSWITCHES) $<
  91.  
  92.  
  93. # C source files that correspond to .o's.
  94. CFILES = i386-dis.c z8k-dis.c m68k-dis.c mips-dis.c ns32k-dis.c ppc-dis.c
  95.  
  96. STAGESTUFF = $(TARGETLIB) $(OFILES)
  97.  
  98. all: $(TARGETLIB) 
  99.  
  100.  
  101. .NOEXPORT:
  102.  
  103. installcheck check:
  104.  
  105. info:
  106. clean-info:
  107. install-info:
  108. dvi:
  109.  
  110. # HDEPFILES comes from the host config; TDEPFILES from the target config.
  111.  
  112.  
  113. $(TARGETLIB): $(OFILES)
  114.      rm -f $(TARGETLIB)
  115.      $(AR) $(AR_FLAGS) $(TARGETLIB) $(OFILES)
  116.      $(RANLIB) $(TARGETLIB)
  117.  
  118. disassemble.o: disassemble.c $(INCDIR)/dis-asm.h
  119.     $(CC) -c $(CFLAGS) $(ARCHDEFS) $(HDEFINES) $(TDEFINES) $(CSEARCH) $(CSWITCHES) $<
  120.  
  121. a29k-dis.o: a29k-dis.c $(INCDIR)/dis-asm.h $(INCDIR)/opcode/a29k.h
  122. dis-buf.o: dis-buf.c $(INCDIR)/dis-asm.h
  123. h8500-dis.o: h8500-dis.c h8500-opc.h $(INCDIR)/dis-asm.h
  124. h8300-dis.o: h8300-dis.c $(INCDIR)/dis-asm.h $(INCDIR)/opcode/h8300.h
  125. i386-dis.o: i386-dis.c $(INCDIR)/dis-asm.h
  126. i960-dis.o: i960-dis.c $(INCDIR)/dis-asm.h
  127. m68k-dis.o: m68k-dis.c $(INCDIR)/dis-asm.h $(INCDIR)/floatformat.h \
  128.     $(INCDIR)/opcode/m68k.h
  129. mips-dis.o: mips-dis.c $(INCDIR)/dis-asm.h $(INCDIR)/opcode/mips.h
  130. mips-opc.o: mips-opc.c $(INCDIR)/opcode/mips.h
  131. ppc-dis.o: ppc-dis.c $(INCDIR)/dis-asm.h $(INCDIR)/opcode/ppc.h
  132. ppc-opc.o: ppc-opc.c $(INCDIR)/opcode/ppc.h
  133. sparc-dis.o: sparc-dis.c $(INCDIR)/dis-asm.h $(INCDIR)/opcode/sparc.h
  134. sparc-opc.o: sparc-opc.c $(INCDIR)/opcode/sparc.h
  135. z8k-dis.o: z8k-dis.c z8k-opc.h $(INCDIR)/dis-asm.h
  136. ns32k-dis.o: ns32k-dis.c $(INCDIR)/dis-asm.h $(INCDIR)/opcode/ns32k.h
  137. sh-dis.o: sh-dis.c sh-opc.h $(INCDIR)/dis-asm.h
  138. alpha-dis.o: alpha-dis.c alpha-opc.h $(INCDIR)/dis-asm.h
  139. hppa-dis.o: hppa-dis.c $(INCDIR)/dis-asm.h $(INCDIR)/opcode/hppa.h
  140. m88k-dis.o: m88k-dis.c $(INCDIR)/dis-asm.h $(INCDIR)/opcode/m88k.h
  141. arm-dis.o: arm-dis.c arm-opc.h $(INCDIR)/dis-asm.h
  142.  
  143. tags etags: TAGS
  144.  
  145. TAGS: force
  146.     etags $(INCDIR)/*.h $(srcdir)/*.h $(srcdir)/*.c
  147.  
  148. MOSTLYCLEAN = *.o core *.E *.p *.ip
  149. mostlyclean:
  150.     rm -rf $(MOSTLYCLEAN)
  151. clean:
  152.     rm -f *.a $(MOSTLYCLEAN)
  153. distclean: clean
  154.     rm -rf Makefile config.status sysdep.h TAGS
  155. clobber realclean: distclean
  156.  
  157. # Mark everything as depending on config.status, since the timestamp on
  158. # sysdep.h might actually move backwards if we reconfig and relink it
  159. # to a different hosts/h-xxx.h file.  This will force a recompile anyway.
  160. RECONFIG = config.status
  161.  
  162.  
  163.  
  164. # This target should be invoked before building a new release.
  165. # 'VERSION' file must be present and contain a string of the form "x.y"
  166. #
  167. roll:
  168.     @V=`cat VERSION`        ; \
  169.     MAJ=`sed 's/\..*//' VERSION`    ; \
  170.     MIN=`sed 's/.*\.//' VERSION`    ; \
  171.     V=$$MAJ.`expr $$MIN + 1`    ; \
  172.     rm -f VERSION            ; \
  173.     echo $$V >VERSION        ; \
  174.     echo Version $$V
  175.  
  176. # Dummy target to force execution of dependent targets.
  177. #
  178. force:
  179.  
  180. install:
  181.     $(INSTALL_DATA) $(TARGETLIB) $(libdir)/libopcodes.a
  182.     $(RANLIB) $(libdir)/libopcodes.a
  183.  
  184. Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)
  185.     $(SHELL) ./config.status
  186.  
  187. dep: $(CFILES)
  188.     mkdep $(CFLAGS) $?
  189.  
  190.  
  191. # What appears below is generated by a hacked mkdep using gcc -MM.
  192.  
  193. # DO NOT DELETE THIS LINE -- mkdep uses it.
  194. # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
  195.  
  196.  
  197. # IF YOU PUT ANYTHING HERE IT WILL GO AWAY
  198.  
  199.